package com.jutixueyuan.controller;

import com.jutixueyuan.pojo.LivegoodsResult;
import com.jutixueyuan.service.HotProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HotProductController {

    @Autowired
    private HotProductService hotProductService;

    @RequestMapping("/hotProduct")
    public LivegoodsResult hotProduct(String city){

        LivegoodsResult result = hotProductService.selectHotProduct(city);

        return result;
    }

}
